<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
{#    <style>#}
{#        td{#}
{#            width: 100px;#}
{#            height: 100px;#}
{#        }#}
{#        #btn1:visited .table{#}
{#            border:1px solid black;#}
{#        }#}
{#    </style>#}
</head>
<body>
<form>
    <table class="table table-hover table-striped table-condensed">
        <tr >
            <td colspan="2"><input type="button" class="btn btn-xs btn-danger" value="商品信息" onclick="window.location.href='look_all'"></td>
            <td colspan="2"><input type="button" class="btn btn-xs btn-danger" value="个人信息" onclick="window.location.href='manage'"></td>
        </tr>
        {% for i in register_set  %}
        <tr>
        <td>{{ i.name }}</td>
        <td>{{ i.password }}</td>
        <td><input type="button" value="查看个人信息" id="btn1" class="btn btn-xs btn-danger" onclick="window.location.href='personal_all?name={{ i.name }}'"></td>
        <td><input type="button" value="查看地址信息" class="btn btn-xs btn-danger" onclick="window.location.href='personal_address?name={{ i.name }}'"></td>
        <td><input type="button" value="查看用户商品" class="btn btn-xs btn-danger" onclick="window.location.href='personal_shop?name={{ i.name }}'"></td>
        </tr>
        {% endfor %}
    </table>
    <table class="table table-hover table-striped table-condensed">
        <tr>
            <td>{{ persondata.name }}</td>
            <td>{{ persondata.sex }}</td>
            <td>{{ persondata.age }}</td>
            <td style="width: 300px">{{ persondata.date }}</td>
            <td>{{ persondata.insteret }}</td>
        </tr>
    </table>
    <table class="table table-hover table-striped table-condensed">
        {% for i in address %}
        <tr>
            <td>{{ i.name }}</td>
            <td>{{ i.adress }}</td>
            <td>{{ i.phone }}</td>
            <td>{{ i.email }}</td>
        </tr>
        {% endfor %}
    </table>
    <table class="table table-hover table-striped table-condensed">
        {% for i in cart %}
        <tr>
            <td><img src="/media/{{ i.image }}" width="100px" height="100px"></td>
            <td>{{ i.name }}</td>
            <td>{{ i.price }}</td>
            <td style="width: 2000px">{{ i.desc }}</td>
        </tr>
        {% endfor %}
    </table>
</form>
</body>
</html>